package com.yun.space.service.impl;



import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.yun.space.base.BaseDaoImpl;
import com.yun.space.entity.Search;
import com.yun.space.service.SearchService;


/**
 * 对User表的数据库接口的实现类
 * @author guo
 */
@Service
@Transactional
public class SerachServiceImpl extends BaseDaoImpl<Search> implements SearchService{
	public Search findByUUID(String uuid,Integer type) {
		return (Search) getSession().createQuery("from Search where uuid = ? and type=?").setString(0, uuid).setInteger(1,type).uniqueResult();
	}

}
